package com.ftg.learn.bus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 审批表
 * </p>
 *
 * @author lalala
 * @since 2022-03-07
 */
@TableName("sys_approval")
@ApiModel(value = "Approval对象", description = "审批表")
public class Approval implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("审批表ID")
    @TableId(value = "aid", type = IdType.AUTO)
    private Long aid;

    @ApiModelProperty("经费支出表ID")
    private Long beid;

    @ApiModelProperty("用户中角色为审批人的ID")
    private Long uaid;

    @ApiModelProperty("审批人姓名")
    private String aname;

    @ApiModelProperty("审批人联系方式(电话)")
    private String aphone;

    @ApiModelProperty("审批时间")
    private LocalDateTime approvalTime;

    @ApiModelProperty("是否通过(0为通过,1为需要审批,2是驳回)")
    private Integer ispassed;

    @ApiModelProperty("备注")
    private String remarks;

    public Long getAid() {
        return aid;
    }

    public void setAid(Long aid) {
        this.aid = aid;
    }
    public Long getBeid() {
        return beid;
    }

    public void setBeid(Long beid) {
        this.beid = beid;
    }
    public String getAname() {
        return aname;
    }

    public Long getUaid() {
        return uaid;
    }

    public void setUaid(Long uaid) {
        this.uaid = uaid;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }
    public String getAphone() {
        return aphone;
    }

    public void setAphone(String aphone) {
        this.aphone = aphone;
    }
    public LocalDateTime getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalTime(LocalDateTime approvalTime) {
        this.approvalTime = approvalTime;
    }
    public Integer getIspassed() {
        return ispassed;
    }

    public void setIspassed(Integer ispassed) {
        this.ispassed = ispassed;
    }
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "Approval{" +
            "aid=" + aid +
            ", beid=" + beid +
            ", uaid=" + uaid +
            ", aname=" + aname +
            ", aphone=" + aphone +
            ", approvalTime=" + approvalTime +
            ", ispassed=" + ispassed +
            ", remarks=" + remarks +
        "}";
    }
}
